package com.sun.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value = "Goods对象", description = "")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @ExcelProperty(value = "主键", index = 0)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "货名")
    @ExcelProperty(value = "货名", index = 1)
    private String name;

    @ApiModelProperty(value = "仓库")
    @ExcelProperty(value = "仓库", index = 2)
    private String storage;

    @ApiModelProperty(value = "区分")
    @ExcelProperty(value = "区分", index = 3)
    @TableField("cell")
    private String cell;

    @ApiModelProperty(value = "分类")
    @ExcelProperty(value = "分类", index = 4)
    @TableField("goodsType")
    private String goodstype;

    @ApiModelProperty(value = "数量")
    @ExcelProperty(value = "数量", index = 5)
    private Integer count;

    @ApiModelProperty(value = "备注")
    @ExcelProperty(value = "备注", index = 6)
    private String remark;
}
